// 使用自己封装的api
import request from '@/api/request'

function list(data) {
  return request({
    url: '/admin/banner/list',
    method: 'get',
    data
  })
}
function saveOrUpdate(data) {
  return request({
    url: '/admin/banner/saveOrUpdate',
    method: 'post',
    data
  })
}

function del(data) {
  return request({
    url: '/admin/banner/del',
    method: 'get',
    data
  })
}

function removeFile(data) {
  return request({
    url: '/admin/banner/removeFile',
    method: 'get',
    data
  })
}

export default {
  list,
  saveOrUpdate,
  del,
  removeFile
}
